package com.echoesnet.echoesshortvideo.Beans;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Copyright (C) 2018 科技发展有限公司
 * 完全享有此软件的著作权，违者必究
 *
 * @author ben
 * @version 1.0
 * @modifier
 * @createDate 2018/4/24 16:17
 * @description
 */
public class PlaceHolder implements Parcelable
{
    private int id;
    private String name;

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    @Override
    public int describeContents()
    {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags)
    {
        dest.writeInt(this.id);
        dest.writeString(this.name);
    }

    public PlaceHolder()
    {
    }

    protected PlaceHolder(Parcel in)
    {
        this.id = in.readInt();
        this.name = in.readString();
    }

    public static final Parcelable.Creator<PlaceHolder> CREATOR = new Parcelable.Creator<PlaceHolder>()
    {
        @Override
        public PlaceHolder createFromParcel(Parcel source)
        {
            return new PlaceHolder(source);
        }

        @Override
        public PlaceHolder[] newArray(int size)
        {
            return new PlaceHolder[size];
        }
    };
}
